package com.kws.merchant.service.impl;


import com.kws.merchant.domain.Device;
import com.kws.merchant.domain.ItemDevice;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kws.merchant.mapper.ItemDeviceMapper;
import com.kws.merchant.service.ItemDeviceService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;

import java.util.List;

/**
 * 项目-项目设备表(ItemDevice)表服务实现类
 *
 * @author yxy
 * @since 2024-10-28 11:41:12
 */
@Service("itemDeviceService")
public class ItemDeviceServiceImpl extends ServiceImpl<ItemDeviceMapper, ItemDevice> implements ItemDeviceService {

    @Resource
    private ItemDeviceMapper itemDeviceMapper;


    /**
     * 分页查询列表
     */
    @Override
    public Page<ItemDevice> pageList(ItemDevice itemDevice) {
        Page<ItemDevice> page = new Page<>(0, 10);
        LambdaQueryWrapper<ItemDevice> queryWrapper = Wrappers.lambdaQuery();

        return this.page(page, queryWrapper);
    }

    /**
     * 根据项目查询设备
     * @param itemId
     * @return
     */
    @Override
    public List<Device> listByItemId(Long itemId) {
        return null;
    }


}
